package com.loongtech.bi.support.chart;

import java.io.Serializable;
import java.util.LinkedHashMap;

/**
 * 图表前端显示辅助类
 * @author Marin
 */
public class ChartUIData implements Serializable{
	private static final long serialVersionUID = 1L;
	private String jsId = "";  // 第几个图，前端图表div的id：highchartChart？是根据这个生成的，方便图表js操作这个id
	private String jsonStr;  // highcharts需要的json串
	private String jsonType = ChartType.SPLINE.type;  // 曲线图类型（spline=线状图，area=区域图，pie=饼状图，column=柱状）
	private String header;  // 图表表头，目前饼状图需要
	
	private String selectItem = "";  // 前端选择的要显示曲线图数据的列
	private LinkedHashMap<String, String> allItmes;  // 前端可选择的曲线图数据的所有的列
	
	private boolean isNull = false;  // 没有数据
	
	public ChartUIData() {
		super();
	}

	public ChartUIData(String jsId, String jsonStr, String jsonType, String header, String selectItem, LinkedHashMap<String, String> allItmes) {
		super();
		this.jsId = jsId;
		this.jsonStr = jsonStr;
		this.jsonType = jsonType;
		this.header = header;
		this.selectItem = selectItem;
		this.allItmes = allItmes;
	}

	public String getJsId() {
		return jsId;
	}

	public void setJsId(String jsId) {
		this.jsId = jsId;
	}

	public String getJsonStr() {
		return jsonStr;
	}

	public void setJsonStr(String jsonStr) {
		this.jsonStr = jsonStr;
	}

	public String getJsonType() {
		return jsonType;
	}

	public void setJsonType(String jsonType) {
		this.jsonType = jsonType;
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getSelectItem() {
		return selectItem;
	}

	public void setSelectItem(String selectItem) {
		this.selectItem = selectItem;
	}

	public LinkedHashMap<String, String> getAllItmes() {
		return allItmes;
	}

	public void setAllItmes(LinkedHashMap<String, String> allItmes) {
		this.allItmes = allItmes;
	}

	public boolean isNull() {
		return isNull;
	}

	public void setNull(boolean isNull) {
		this.isNull = isNull;
	}
}
